package git.bds.nyc.applet.api.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 成大事
 * @since 2023/3/11 17:27
 */
@Getter
@Setter
public class FarmerAuthenticationInfoDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "身份证前面照片(带照片名字的一面)")
    private String frontImg;

    @ApiModelProperty(value = "身份证后面照片(带国徽名字的一面)")
    private String backImg;

    @NotNull
    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty("真实姓名")
    private String realName;

    @NotNull
    @Max(value = 1,message = "性别有误")
    @Min(value = 0,message = "性别有误")
    @ApiModelProperty("性别, 男士代表：1 女生代表：0")
    private Integer gender;

    @NotNull
    @NotBlank(message = "身份证号不能为空")
    @ApiModelProperty("身份证号")
    private String idCardNum;
}
